<?php
namespace Home\Model;
use Think\Model\ViewModel;
class BorrowViewModel extends ViewModel{
	protected $connection = 'CAIWU';
	protected $tablePrefix = '';
    public $viewFields = array(
    'Borrow'=>array('id'=>'bid','borrow_no','ctime','vid','borrow','_table'=>"user_borrow",'_as'=>'Borrow'),
    'Repaya'=>array('id'=>'aid','status','all_period','period','_table'=>"user_repayment_a",'_as'=>'Repaya','_on'=>'Borrow.borrow_no=Repaya.borrow_no'),
   );
}
?>